/** 揽件寄存管理 **/
import { base_url } from '../request.config';

const tookDepositApi = {
  logis: 'thanos/logis', // 物流中心详情、添加与修改

  sending_list: 'thanos/sending/list', // 揽件管理列表
  sending_count: 'thanos/sending/count', // 揽件管理信息统计
  sending_sendType: 'thanos/sending/sendType', // 寄件类型
  sending_sendStatus: 'thanos/sending/sendStatus', // 获取揽件订单状态
  sending: 'thanos/sending', // 揽件订单详情
  sending_cancelList: 'thanos/sending/cancelList', // 取消原因
  sending_cancelOrder: 'thanos/sending/cancelOrder', // 取消揽件
  sending_outboxList: 'thanos/sending/outboxList', // 打印出库单列表
  sending_printOutbox: 'thanos/sending/printOutbox', // 打印出库单
  sending_exportExcel: 'thanos/sending/exportExcel', // 导出Excel
  sending_qrCode: 'thanos/sending/qrCode', // 二维码
  sending_exportOrderExcel: 'thanos/sending/exportOrderExcel', //揽件管理订单导出
  sending_sortingExpress: 'thanos/sending/sortingExpress', //揽件管理设置页面的查询

  sending_cainiaoShippAddr: 'thanos/sending/cainiaoShippAddr', // 获取物流中心发货地址和网点名称
  sending_printConfInfo: 'thanos/sending/printConfInfo', // 云盒打印配置信息
  sending_printTemplate: 'thanos/sending/printTemplate', // 获取打印模板
  sending_setPrintTemplate: 'thanos/sending/setPrintTemplate', // 设置打印模板
  sending_yunPrint: 'thanos/sending/yunPrint', // 云打印
};

const tookDeposit: any = Object.keys(tookDepositApi)
  .reduce((origin, item) => {
    origin[item] = `${base_url}/${tookDepositApi[item]}`;
    return origin;
  }, {})

export default tookDeposit;
